
import java.net.Socket;
import javax.swing.JOptionPane;

/**
 *
 * @author Gislene
 */
public class Main {

    static Socket novaConexao;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        //  String ip = JOptionPane.showInputDialog("Informe o endereço IP do Servidor");
        String nome = JOptionPane.showInputDialog("Informe seu Nick");
        try {
            novaConexao = new Socket("127.0.0.1", 2000);
            TelaCliente tc = new TelaCliente(novaConexao, nome);
            new Thread (tc).start();
        } catch (Exception e) {
            System.out.println(e.toString());
        }

    }
}
